import axios from "axios";
export default {
  getDmDetail(id) {
    return axios.get("/dm/getDmById", { params: { id } });
  },
  getDmSpotStatus(id) {
    return axios.get("/userDm/queryGuanZhu", { params: { id } });
  },
  getDmPrevBookList(id) {
    return axios.get("/getFarmByDmId", { params: { dmId: id } });
  },
  spotDm(id) {
    return axios.get("/userDm/guanZhu", { params: { id } });
  },
  cancelSpotDm() {
    return axios.get("/userDm/noGuanZhu", { params: { id } });
  },
};
